﻿using FastMvc;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
using System.Text;

namespace TestWebServer
{
    public class StartUp : BaseStartUp
    {
        public StartUp(IConfiguration configuration)
            : base(configuration)
        {
        }

        public override string SwaggerName => "TestServer";

        public override void Configure(IApplicationBuilder app, IWebHostEnvironment env)
        {
            base.Configure(app, env);

            app.UseEndpoints(endpoint =>
            {
                endpoint.MapControllers();
                endpoint.MapControllerRoute("default", "api/{controller}/{action}");
            });
        }
    }
}
